package com.ruoyi.project.wx.reserve.service;

import com.ruoyi.common.constant.UserConstants;
import com.ruoyi.common.exception.BusinessException;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.common.utils.security.ShiroUtils;
import com.ruoyi.common.utils.text.Convert;
import com.ruoyi.framework.aspectj.lang.annotation.DataScope;
import com.ruoyi.framework.web.domain.Ztree;
import com.ruoyi.project.wx.reserve.domain.WxMakeCar;
import com.ruoyi.project.wx.reserve.mapper.WxMakeCarMapper;
import com.ruoyi.project.system.role.domain.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.List;

/**
 * 部门管理 服务实现
 * 
 * @author ruoyi
 */
@Service
public class WxMakeCarServiceImpl implements WxMakeCarService
{
    @Autowired
    private WxMakeCarMapper wxMakeCarMapper;


    @Override
    @DataScope(tableAlias = "w")
    public List<WxMakeCar> selectMakeList(WxMakeCar wxMakeCar) {
        return wxMakeCarMapper.wxMakeCarlist(wxMakeCar);
    }

    @Override
    @DataScope(tableAlias = "w")
    public int insert(WxMakeCar wxMakeCar) {
        return wxMakeCarMapper.insert(wxMakeCar);
    }

    @Override
    public int updateMakeStatus(WxMakeCar wxMakeCar) {
        return wxMakeCarMapper.updateMakeStatus(wxMakeCar);
    }

    @Override
    public int delMakeByIds(String ids) {
        return wxMakeCarMapper.delMakeByIds(Convert.toStrArray(ids));
    }
}
